import 'package:flutter/material.dart';

class GameNumButton extends StatelessWidget {
  final Color? bgColor;
  final String number;
  const GameNumButton({Key? key, this.bgColor, required this.number})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 44,
      alignment: Alignment.center,
      decoration: BoxDecoration(
        color: bgColor ?? Color(0xFFFB455B),
        borderRadius: const BorderRadius.all(Radius.circular(4.0)),
      ),
      child: Text(
        number,
        style: TextStyle(color: Color(0xFFFFFFFF)),
      ),
    );
  }
}
